<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<?php

include("conn.php");

?>

<?php
$sql="select * from message order by id desc";
$query=mysql_query($sql);
while($row=mysql_fetch_array($query)){
?>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
	background-color: #0FF;
	background-image: url(image/74f7f3d3b1c90533960a16a3.jpg.gif);
	background-repeat: no-repeat;
	background-position: 450px 200px;
}
-->
</style>
<table width="1007" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">

<tr>
    <td width="124" height="30" align="center" bgcolor="#FFFFFF"><?php echo htmtocode($row["user"]) ?></td>
    <td width="880" align="left" bgcolor="#FFFFFF"> 　<?php echo $row["title"] ?><?php echo htmtocode($row["lastdate"]) ?> <a href="add.php">添加留言</a> <a href="show.php">查看留言</a> <a href="login.php">登陆</a></td>
</tr>
<tr>
    <td height="29" bgcolor="#FFFFFF"></td>
    <td align="left" bgcolor="#FFFFFF">　<?php echo htmtocode($row["content"]) ?></td>
</tr>
</table><br>
<?php
}
?>

